<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    
   <title>塔城地区公共就业信息有务网_招聘会信息</title>
    <meta charset="UTF-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="../common/style.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="../common/css/reset.css" />
	<script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
	<link href="../common/css/pageCode.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="../js/jquery-1.8.0.js"></script>
	<script type="text/javascript" src="../js/jquery.page.js"></script>
      <script type="text/javascript">
          $(function () {
              var path=window.location.search;
              var id=path.split("=")[1];


              //查询招聘会详情
              $.ajax({
                  url:"getJobFairById.action",
                  dataType:"json",
                  headers:{
                      token:window.sessionStorage.getItem("token")
                  },
                  type:"post",
                  data:{
                      id:id
                  },
                  success:function (jobFair) {
                      $("#jobFairName").val(jobFair.jobFairName);
                      $("#jbDate").val(jobFair.jbDate);
                      $("#jbTime").val(jobFair.jbTime);
                      $("#jbCity").val(jobFair.jbCity);
                      $("#jbPlace").val(jobFair.jbPlace);
                      // var arr=jobFair.details.split("\r\n");  //把回车换行变成<p>标签展示
                      // var details="";
                      // $.each(arr,function (key,value) {
                      //     details+="<p>"+value+"</p>";
                      // })
                      $("#details").val(jobFair.details);
                      $("#linkman").val(jobFair.linkman==""?"暂无":jobFair.linkman);
                      $("#phone").val(jobFair.phone==""?"暂无":jobFair.phone);
                  }
              });
              $("#upJobFair").click(function () {
                  $.ajax({
                      url: "upJobFair.action",
                      type: "post",
                      headers:{
                          id:id,
                          token:window.sessionStorage.getItem("token")
                      },
                      data:$("#form1").serialize(),
                      success:function(data){
                          if(data==1){
                              alert("修改成功！");
                              window.location.reload();
                          }else{
                              alert("修改失败！");
                          }
                      }
                  });
              });
          });

      </script>
</head>
<body>
   <div class="ban1">
    <div class="nav1">
		<P><span>马力，欢迎登录！</span>  |  <a href="javascript:void(0);" id="updatePassword">修改密码</a>  |  <a href="#">退出</a></P>
        <ul>
            <li><a href="dw_index.html">单位首页</a></li>
			<li><a href="dw_resume_search.html">人才搜索</a></li>
            <li><a href="dw_zp_manage.html">招聘管理</a></li>
			<li><a href="dw_qz_manage.html">求职管理</a></li>
			<li><a href="dw_zph_manage.html">招聘会管理</a></li>
        </ul>
    </div>
</div>

<div class="main mt12">
	<div class="fl w195">
    	<dl>
        	<dt><strong>常用功能</strong></dt>
			<dd><img src="../images/ico3.gif"/><a href="dw_index.html" title="">单位预览</a></dd>
            <dd><img src="../images/ico1.gif"/><a href="dw_company_update.html" title="">单位基本信息</a></dd>
        </dl>
    </div>
	<div class="fr w795">
    	<div class="yh-tit"><strong>招聘会信息</strong></div>
        <div class="yh-ss">
       		 <form id="form1">
            	<ul>
                	<li><label>招聘会名称：</label><input type="text" name="jobFairName" id="jobFairName"/></li>
                    <li><label>举办日期：</label><input type="text" onclick="WdatePicker()"  name="jbDate" id="jbDate"/></li>
                    <li><label>举办城市：</label><input type="text" name="jbCity" id="jbCity"/></li>
                    <li><label>举办时间：</label><input type="text" name="jbTime" id="jbTime" placeholder="如：9:00~12:00"/></li>
                    <li><label>举办地点：</label><input type="text" name="jbPlace" id="jbPlace"/></li>
                    <li><label>联系人：</label><input type="text" name="linkman" id="linkman"/></li>
					<li><label>联系电话：</label><input type="text" name="phone" id="phone"/></li>
					<li><label>详情：</label></li>
                </ul>
				<p>
				<textarea name="details" id="details" cols="103" placeholder="请输入: " rows="10"></textarea>
				</p>
                <p><input name="" type="button" id="upJobFair" class="ssbtn" value="更 新" /><a href="dw_zph_manage.html"  class="ssbtn"/>返 回</p>
             </form>
            </div>


    </div>
</div>
<div class="foot">
    <ul>
      相关网站导航：<select name="menu1" onchange="MM_jumpMenu('parent',this,0)" style="margin-left:20px;display:inline;">
          <option>-- 自  治 区 政 府 部 门 --</option>
        </select> 
        <select name="menu2" onchange="MM_jumpMenu('parent',this,0)" style="margin-left:20px;display:inline;">
          <option>-- 地 州 网  站 --</option>
        </select>
            <select name="menu3" onchange="MM_jumpMenu('parent',this,0)" style="margin-left:20px;display:inline;">
              <option>--主 要  新 闻  媒  体 --</option>
            </select>
            <select name="menu4" onchange="MM_jumpMenu('parent',this,0)" style="margin-left:20px;display:inline;">
              <option>-- 主 要 门 户 及 合 作 网 站 --</option>
            </select>
      </ul>
    
    <p>主办单位：塔城地区人力资源和社会保障局<br />技术支持：塔城地区人力资源和社会保障局信息化办公室</p>
</div>
</body>
</html>
